/**
 * Created by TianJing on 2017/3/20.
 */
(function() {
    'use strict';
    /**
     * 中介联系人 列表初始化设置
     * @type {Object}
     */
    var settings = {
        "sAjaxSource": window.globalHost + common.agentListPort,
        "aoColumns": [
            {
                "mDataProp": "mobile",
                "sTitle": "手机号码",
                "sDefaultContent": ""
            }, {
                "mDataProp": "createTime",
                "sTitle": "注册时间",
                "sDefaultContent": ""
            }
            ],
            "fnServerParams": function(aoData) {
                return common.getSearchData("form.data-list-search",aoData);
            }
        };
    var options = $.extend(true, {}, _dataTableSettings, settings);
    /**
     * 实例化 中介联系人 列表插件
     * @type {[type]}
     */
    var $currentDataTable=$("#data-list");
    var oTable = $currentDataTable.dataTable(options);
    searchList.getDataList(oTable);
    searchList.resetSearch(oTable);
}).call(this);